import { AppModel } from '../../../../model/AppModel';
import { createUIWidgetMenu } from '../BlockPackage'

export default {

    category: Blockly.Categories.bepart ,
    color: [
        Blockly.Colours.bepart.primary,
        Blockly.Colours.bepart.secondary,
        Blockly.Colours.bepart.tertiary
    ] ,

    previousStatement: false ,
    nextStatement: false ,
    hat: false ,

    extensions: ['colours_operators', 'output_number'] ,

    init(model: AppModel) {
        this.appendDummyInput()
            .appendField("接收到的数据")
        Blockly.Extensions.apply("output_number", this)
    } ,

    run (args: any, util: any, runtime: any) {} ,

    coder: {
        JavaScript(block: any, coder: any) {
            return ["_pkg_buff", coder.ORDER_ATOMIC]
        }
    }
}
